source /home/giancarlo/.vim/gc_groups.vim

" Saves Current File and Runs it
noremap <buffer> <F5> <Esc>:w<CR>:!ruby %<CR>
" Comment Block
vnoremap <buffer><silent> <F10> I#<Esc>
" Comment Current Line and Go Down
nnoremap <silent><buffer> <F10> gI#<Esc>j
" Saves and Debug Current File
noremap <silent><buffer> <F8> <Esc>:w<CR>:!ruby -rdebug %<CR>

" New Class
inoremap <buffer> <A-c> class<CR><CR>end<Up><Up><End><Space>
"imap <buffer> <Esc>c <A-c>
nmap <buffer> <A-c> i<A-c>
"nmap <buffer> <Esc>c <A-c>

" New def
inoremap <buffer> <A-d> def<CR><CR>end<Up><Up><End><Space>
"imap <buffer> <Esc>d <A-d>
nmap <buffer> <A-d> i<A-d>
"nmap <buffer> <Esc>d <A-d>

" New Module
inoremap <buffer> <A-m> module<CR><CR>end<Up><Up><End><Space>
"imap <buffer> <Esc>m <A-m>
nmap <buffer> <A-m> i<A-m>
"nmap <buffer> <Esc>m <A-m>

" New assert
inoremap <buffer> <A-a> assert()<Left>
"imap <buffer> <Esc>a <A-a>
nmap <buffer> <A-a> i<A-a>
"nmap <buffer> <Esc>a <A-a>
